package com.example.androidpractice;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.example.androidpractice.lifecycle.MyActivityObserver;

public class LifeCycleExampleActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_cycle_example);
        getLifecycle().addObserver(new MyActivityObserver(this,this.getLifecycle()));
    }
}
